<template>
  <div>
    <r-h-table v-bind:="table" />
  </div>
</template>

<script>
import RHTable from '@/components/RHTable'
export default {
  name: 'View',
  components: {
    RHTable
  },
  data() {
    return {
      table: {
        columns: [
          {
            title: '主键id',
            dataIndex: 'id'
          },
          {
            title: '排序',
            dataIndex: 'sort'
          },
          {
            title: '标题',
            dataIndex: 'title'
          },
          {
            title: '表名称',
            dataIndex: 'name'
          },
          {
            title: '乐观锁',
            dataIndex: 'revision'
          },
          {
            title: '删除状态',
            dataIndex: 'del'
          },
          {
            title: '状态',
            dataIndex: 'status'
          },
          {
            title: '创建人',
            dataIndex: 'createdId'
          },
          {
            title: '创建人姓名',
            dataIndex: 'createdName'
          },
          {
            title: '创建时间',
            dataIndex: 'createdTime'
          },
          {
            title: '更新人',
            dataIndex: 'updatedId'
          },
          {
            title: '更新人姓名',
            dataIndex: 'updatedName'
          },
          {
            title: '更新时间',
            dataIndex: 'updatedTime'
          }
        ],
        url: '/api/base/rhTable/getList',
        footer: false
      }
    }
  }

}
</script>

<style scoped></style>
